/**
 * 
 */
package com.xinnet.mms.enums;


/**
 * 消耗流程阶段枚举
 * @author 王志军
 * @author $Author:$
 * @version $Revision:$ $Date:$ 
 * @since 2016-1-13
 * 
 */
public enum ConsumePhaseTypeEnmu {
	ONE(1,"初期沟通"),
	TWO(2,"确认需求"),
	THREE(3,"方案制定"),
	FOUR(4,"商务谈判"),
	FIVE(5,"充值"),
	SIX(6,"消耗");
	private Integer value;
	
	private String label;
	
	private ConsumePhaseTypeEnmu(Integer value, String label){
		this.value = value;
		this.label = label;
	}
	
	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	
	/**
	 * 根据value获取对应的枚举
	 * @param value
	 * @return
	 */
	public static ConsumePhaseTypeEnmu getAllotTypeEnmuByValue(Integer value){
		ConsumePhaseTypeEnmu[] custEnums = ConsumePhaseTypeEnmu.values();
		for (ConsumePhaseTypeEnmu custEnum : custEnums) {
			if(custEnum.getValue().equals(value)){
				return custEnum;
			}
		}
		return null;
	}
}
